package cn.softeem.tushu.web;

import cn.softeem.tushu.po.User;
import cn.softeem.tushu.utils.BaseServlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(name = "loginServlet", urlPatterns = "/loginServlet")
public class loginServlet extends BaseServlet {
    public String login(HttpServletRequest request, HttpServletResponse response){
        User user = new User("xxxx","赵云","123","zhaoYun@163.com",1,"xxxx");
        request.getSession().setAttribute("user",user);
        return  "s:/index.jsp";
    }
}
